package com.zx.map.dao.model;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Redpacket {
    private Integer redpacketId;
    
	private String name;

    private String merchantId;

    private BigDecimal needMoney;

    private BigDecimal money;

    private BigDecimal useMoney;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date beginDatetime;

    private Long beginDatetimeLong;
    
    public Long getBeginDatetimeLong() {
		return beginDatetime.getTime();
	}

	public void setBeginDatetimeLong(Long beginDatetimeLong) {
		this.beginDatetimeLong = beginDatetimeLong;
	}

	@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date endDatetime;

	private Long endDatetimeLong;
	
    public Long getEndDatetimeLong() {
		return endDatetime.getTime();
	}

	public void setEndDatetimeLong(Long endDatetimeLong) {
		this.endDatetimeLong = endDatetimeLong;
	}

	private Integer num;

    private Integer useNum;

    private Integer joinNum;

    private Integer redpacketActiveType;

    private BigDecimal activeMoney;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDatetime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateDatetime;

    private Boolean delStatu;
    //红包有效时间
    private int redpacketLifecycle;
    //老会员数
    private int oldVipNum;
    //通知时间
    private Date noticeDatetime;
    //通知人数
    private int noticeNum;
    public Integer getRedpacketId() {
        return redpacketId;
    }

    public void setRedpacketId(Integer redpacketId) {
        this.redpacketId = redpacketId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId == null ? null : merchantId.trim();
    }

    public BigDecimal getNeedMoney() {
        return needMoney;
    }

    public void setNeedMoney(BigDecimal needMoney) {
        this.needMoney = needMoney;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getUseMoney() {
        return useMoney;
    }

    public void setUseMoney(BigDecimal useMoney) {
        this.useMoney = useMoney;
    }

    public Date getBeginDatetime() {
        return beginDatetime;
    }

    public void setBeginDatetime(Date beginDatetime) {
        this.beginDatetime = beginDatetime;
    }

    public Date getEndDatetime() {
        return endDatetime;
    }

    public void setEndDatetime(Date endDatetime) {
        this.endDatetime = endDatetime;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getUseNum() {
        return useNum;
    }

    public void setUseNum(Integer useNum) {
        this.useNum = useNum;
    }

    public Integer getJoinNum() {
        return joinNum;
    }

    public void setJoinNum(Integer joinNum) {
        this.joinNum = joinNum;
    }

    public Integer getRedpacketActiveType() {
		return redpacketActiveType;
	}

	public void setRedpacketActiveType(Integer redpacketActiveType) {
		this.redpacketActiveType = redpacketActiveType;
	}

	public BigDecimal getActiveMoney() {
        return activeMoney;
    }

    public void setActiveMoney(BigDecimal activeMoney) {
        this.activeMoney = activeMoney;
    }

    public Date getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(Date createDatetime) {
        this.createDatetime = createDatetime;
    }

    public Date getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(Date updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    public Boolean getDelStatu() {
        return delStatu;
    }

    public void setDelStatu(Boolean delStatu) {
        this.delStatu = delStatu;
    }

	public int getRedpacketLifecycle() {
		return redpacketLifecycle;
	}

	public void setRedpacketLifecycle(int redpacketLifecycle) {
		this.redpacketLifecycle = redpacketLifecycle;
	}

	public int getOldVipNum() {
		return oldVipNum;
	}

	public void setOldVipNum(int oldVipNum) {
		this.oldVipNum = oldVipNum;
	}

	public Date getNoticeDatetime() {
		return noticeDatetime;
	}

	public void setNoticeDatetime(Date noticeDatetime) {
		this.noticeDatetime = noticeDatetime;
	}

	public int getNoticeNum() {
		return noticeNum;
	}

	public void setNoticeNum(int noticeNum) {
		this.noticeNum = noticeNum;
	}

}